/**
 * Modal 模态框组件样式
 * 提供现代化的弹窗样式和动画效果
 */

/* 模态框遮罩层 */
.modal-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.2s ease-out;
}

/* 模态框包装器 */
.modal-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* 模态框容器 */
.modal-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  max-height: 90vh;
  overflow: auto;
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
}

/* 模态框头部 */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #f0f0f0;
}

/* 模态框标题 */
.modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #262626;
  line-height: 1.4;
}

/* 关闭按钮 */
.modal-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #8c8c8c;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: #f5f5f5;
  color: #595959;
}

.modal-close-btn:active {
  background: #e6f7ff;
  color: #1890ff;
}

/* 模态框内容 */
.modal-content {
  padding: 20px 24px 24px;
}

/* 动画效果 */
@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .modal-mask {
    padding: 10px;
  }
  
  .modal-container {
    max-height: 95vh;
    width: 100% !important;
    margin: 0;
  }
  
  .modal-header {
    padding: 16px 20px 12px;
  }
  
  .modal-content {
    padding: 16px 20px 20px;
  }
  
  .modal-title {
    font-size: 16px;
  }
} 